window.onload=function(){
		var sWidth, sHeight,Div_topposition,Div_leftposition;
        sWidth = window.screen.availWidth;
        if (window.screen.availHeight > document.body.scrollHeight)
        {
            sHeight = window.screen.availHeight;

        } else
        {
            sHeight = document.body.scrollHeight + 20;

        }
        var div=document.getElementById("grjl-tab");
        div.style.width = sWidth + "px";
        div.style.height = sHeight + "px";
	}

function jrxs(){
	var divlist=document.getElementsByName("divlist");
    for(i=0;i<divlist.length;i++){
        var MyDiv_w = $(divlist[i]).width();
        var MyDiv_h = $(divlist[i]).height();
        MyDiv_w = parseInt(MyDiv_w);
        MyDiv_h = parseInt(MyDiv_h);
        var width=window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null;
        var height=window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;      
        var top=0,left=0;
        if($.browser.mozilla)
        {
            top=window.pageYOffset;
            left=window.pageXOffset;
            
        }
        else if($.browser.msie)
        {
            top=document.documentElement.scrollTop;
            left=document.documentElement.scrollLeft;

        }
        else if(document.body)
        {
            top=document.body.scrollTop;
            left=document.body.scrollLeft;
        }
         Div_topposition = top + (height / 2) - (MyDiv_h / 2);
         Div_leftposition = left + (width / 2) - (MyDiv_w / 2);
        
   	} 
   	$(".divlist").css({top:Div_topposition+"px",left:Div_leftposition+"px"});
	
}
	